package com.justgame.project.service.api.entity;

import com.justgame.project.cloud.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 游戏评论表实体
 *
 * @author ZhouWeiBo
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class JustGameComment extends BaseEntity {

    /**
     * 父级id
     */
    private String parentId;

    /**
     * 祖关联
     */
    private String ancestors;

    /**
     * 游戏id
     */
    @NotBlank
    private String gameId;

    /**
     * 回复内容
     */
    @NotBlank
    @Length(min = 3,max = 600,message = "请确保字数在3~600字之间！")
    private String content;

    /**
     * 评论层级 ( 1:评论  2:回复)
     */
    private Integer type;

    /**
     * 是否被显性删除
     */
    private Integer isRemove;

    /**
     * 是否匿名
     */
    private Integer isPixelate;

}
